Accusoft.PdfXpress5.ActiveX
Save PDF to Memory
See Also Send Feedback
PDF Xpress 5 for ActiveX - User Guide > How To > Save PDF to Memory

Glossary Item Box

PDF Xpress™ supports saving a PDF document to memory.

To save an open PDF document to memory:

  1. Create a new SaveOptions object.
  2. Configure the SaveOptions object.
  3. Invoke the SaveDocumentToHandle method and specify SaveOptions to write the PDF file to a new Global Memory buffer.
PDF Xpress saves all documents in PDF version 1.6 if changes have been made to the document; if changes have not been made, then the version is unchanged.
Remote file access (HTTP / FTP) is not supported by PDF Xpress. 
VB Example Copy Code
'This code demonstrates saving a PDF to memory
On Error GoTo error
Dim pdfxpress1 As New Pdfxpress
pdfxpress1.Initialize
pdfxpress1.RaiseExceptions = True
Dim document As New PdfDocument
document.SetParentControl pdfxpress1
Dim so As New saveOptions
Dim hGlobal As Long
document.SaveDocumentToHandle so, hGlobal
.
.
.
GoTo finish
error:

MsgBox pdfxpress1.PdfError

finish:

Set document = Nothing
pdfxpress1.Terminate
Set pdfxpress1= Nothing

See Also

©2012. Accusoft Corporation. All Rights Reserved.